var bookmarksLayout="<?php echo cfRGetVar('bookmarksLayout')?>";
var singleBookmarkLayout="<?php echo cfRGetVar('singleBookmarkLayout')?>";
var bmArray;
var displayThumbnails=<?php echo (int)cfRGetVar('displayThumbnails')?>;
var thumbnailSizeIcons="<?php echo cfRGetVar('thumbnailSizeIcons')?>";
var thumbnailSizeFull="<?php echo cfRGetVar('thumbnailSizeFull')?>";
var thumbnailRatio="<?php echo cfRGetVar('thumbnailRatio')?>";
var monitorTimeout=0;
var monitorDelay=<?php echo max(1000,(int)cfRGetVar('monitorDelay'));?>;
var displayed;
var editAllowed=<?php echo (int)bfEditAllowed();?>;
var addToBookmarksButtonTemplateS='<?php echo addslashes(outButtonSmall(false,'javascript:ACTION',outIcon('favorites'),'TITLE',false,' rel="sidebar"'))?>';
var addToBookmarksButtonTemplate='<?php echo addslashes(outButton(false,'javascript:ACTION',outIcon('favorites'),'TITLE',false,' rel="sidebar"'))?>';
var editCommentsButtonTemplateS='<?php echo addslashes(outButtonSmall(false,'javascript:ACTION',outIcon('edit'),cfCaption('genEdit')))?>';
var editCommentsButtonTemplate='<?php echo addslashes(outButton(false,'javascript:ACTION',outIcon('edit'),cfCaption('genEdit')))?>';
var suppButtonTemplateS='<?php echo addslashes(outButtonSmall(false,'javascript:ACTION',outIcon('del'),cfCaption('genDelete')))?>';
var suppButtonTemplate='<?php echo addslashes(outButton(false,'javascript:ACTION',outIcon('del'),cfCaption('genDelete')))?>';
var newBookmarkButtonTemplateS='<?php echo addslashes(outButtonSmall(false,'javascript:ACTION',outIcon('new'),cfCaption('bookmarksNewBookmark')))?>';
var newBookmarkButtonTemplate='<?php echo addslashes(outButton(false,'javascript:ACTION',outIcon('new'),cfCaption('bookmarksNewBookmark')))?>';
var fullScreenButtonTemplate='<?php echo addslashes(outButton(false,'javascript:ACTION',outIcon('fscreen'),cfCaption('genOpen')))?>';
function bmOpen(index){W.open(bmArray[index]['url'])}
function addToBookmarksButton(i,small){
var bt=small?addToBookmarksButtonTemplateS:addToBookmarksButtonTemplate;